/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package backupit.core.mailbackup.io;

import backupit.core.Backup;
import backupit.core.BackupInfo;
import backupit.core.io.BackupWriter;
import backupit.core.mailbackup.MailBackup;

/**
 *
 * @author dbotelho
 */
public class MailBackupWriter extends BackupWriter{
    
    protected BackupInfo backupInfo;
    
    public MailBackupWriter(MailBackup mailBackup){
        super(mailBackup);
    }

    public void run() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public MailBackup getBackup() {
        return (MailBackup)super.getBackup();
    }

    @Override
    public BackupInfo getBackupInfo() {
        return backupInfo;
    }

    @Override
    protected void setBackupInfo(BackupInfo backupInfo) {
        this.backupInfo = backupInfo;
    }
    

}
